export const complanitColumns = context => {
  let tabTypeName
  switch (context.tabType) {
    case '4':
      tabTypeName = '投诉类型'
      break
    default:
      tabTypeName = ''
      break
  }
  return [
    {
      prop: 'name',
      renderHead: (h, row) => {
        return <span>{tabTypeName}</span>
      }
    },
    {
      label: '操作',
      width: 160,
      fixed: 'right',
      render: (h, row) => {
        return [
          <el-button type="text" onClick={() => context.onEdit(row)}>
            编辑
          </el-button>

        ]
      }
    }
  ]
}
